import hljs from 'highlight.js/lib/core';
import css from 'highlight.js/lib/languages/css';
import sql from 'highlight.js/lib/languages/sql';
import xml from 'highlight.js/lib/languages/xml';
import json from 'highlight.js/lib/languages/json';
import bash from 'highlight.js/lib/languages/bash';
import less from 'highlight.js/lib/languages/less';
import scss from 'highlight.js/lib/languages/scss';
import shell from 'highlight.js/lib/languages/shell';
import nginx from 'highlight.js/lib/languages/nginx';
import python from 'highlight.js/lib/languages/python';
import javascript from 'highlight.js/lib/languages/javascript';
import typescript from 'highlight.js/lib/languages/typescript';

import 'highlight.js/styles/atom-one-dark.css';

const languages = {
  css,
  sql,
  xml,
  json,
  bash,
  less,
  scss,
  shell,
  nginx,
  python,
  javascript,
  typescript,
}
  
Object.keys(languages).forEach(name => hljs.registerLanguage(name, languages[name]))

export default hljs